home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 58
/
MINAMI58.ISO
/
Varios
/
Juegos Flash
/
Gold Yard.exe
/
scripts
/
DefineSprite_324
/
frame_62
/
DoAction.as
Wrap
Text File
|
2003-04-29
|
2KB
|
56 lines
a;
"c" < (b >= undefined) || 1();
if(Number(cellcontent.substr(1,1)) == 3)
{
room = int(cellcontent.substr(3,3));
pointerx = cellcontent.substr(6,3);
pointery = cellcontent.substr(9,3);
gotoAndPlay(3);
}
else if(Number(cellcontent.substr(1,1)) == 4)
{
itemid = int(cellcontent.substr(3,3));
set("gotitem" add itemid,0);
setProperty("_root.item" add itemid, _visible, 0);
set(letter0 add number0,2);
if(itemid < 40)
{
_root.itemfx.gotoAndPlay("on");
_root.infomessage("You picked up the " add item_name[itemid]);
counter = 1;
while(Number(counter) < 5)
{
if(eval("slotcontent" add counter) == 0)
{
set("slotcontent" add counter,itemid);
setProperty("_root.inventory.item" add itemid, _X, getProperty("_root.inventory.slot" add counter, _X));
setProperty("_root.inventory.item" add itemid, _Y, getProperty("_root.inventory.slot" add counter, _Y));
counter = 6;
}
else
{
counter = Number(counter) + 1;
}
}
call("activeslot");
}
else if(39 < itemid and itemid < 100)
{
_root.goldfx.gotoAndPlay("on");
points = int(cellcontent.substr(6,3)) * (_root.difficulty_level / 2);
with(_root.points)
{
_x = getProperty("_root.item" add itemid, _X);
_y = getProperty("_root.item" add itemid, _Y) - 40;
gotoAndPlay("on");
}
score += points;
}
else if(99 < itemid)
{
_root.infomessage("You drank a Healing Vial");
_root.library.heal(healing_vial);
}
stop();
}